#include <bits/stdc++.h>
using namespace std;
int main(){
    string s;
    cin >> s;
    string ans;
    for(char k:s){
        if( isupper(k))
        ans += k;
    }
    cout << ans;
    return 0;
}